<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>

<!DOCTYPE html>
<html>

<head>
	<meta charset="UTF-8">
	<title>商品销售排行-azhuo商城</title>
	<meta name="renderer" content="webkit|ie-comp|ie-stand">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta http-equiv="Cache-Control" content="no-siteapp" />

	<link rel="shortcut icon" href="${pageContext.request.contextPath }/image/logo/xyz.ico" type="image/x-icon" />
	<link rel="stylesheet" href="${pageContext.request.contextPath }/css/font.css">
	<link rel="stylesheet" href="${pageContext.request.contextPath }/css/xadmin.css">

	<script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery.min.js"></script>
	<script src="${pageContext.request.contextPath }/lib/layui/layui.js" charset="utf-8"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath }/js/xadmin.js"></script>

</head>

<body>
	<div class="x-nav">
		<span class="layui-breadcrumb">
			<a href="${pageContext.request.contextPath}/adminjsps/home.jsp" target="iframe_a">首页</a>
			<a><cite>查看商品</cite></a>
		</span>
		<a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right"
			href="javascript:location.replace(location.href);" title="刷新">
			<i class="layui-icon" style="line-height:30px">ဂ</i></a>
	</div>
	<div class="x-body">
		<table class="layui-table layui-form" style="text-align: center;">
			<thead>
				<tr style="text-align: center;">
					<th style="text-align: center;">序号</th>
					<th style="text-align: center;">商品图片</th>
					<th style="text-align: center;">商品名称</th>
					<th style="text-align: center;">销售数量</th>
					<th style="text-align: center;">销售总金额</th>
			</thead>
			<tbody class="x-cate">
				<%-- 输出所有分类 --%>
				<c:forEach items="${sortGoodsList }" var="sordGoods" varStatus="status">
					<tr cate-id='1' fid='0'>
						<td>${status.count }</td>
						<td>
							<img style="width: 70px;height: 70px;padding: 5px;"
								src="${pageContext.request.contextPath}/image/goods/${sordGoods.goods.image}" alt="商品图片" />
						</td>
						<td>${sordGoods.goods.gname }</td>
						<td>${sordGoods.count }</td>
						<td>${sordGoods.total }元</td>
					</tr>
				</c:forEach>
			</tbody>
		</table>
	</div>
</body>

</html>